﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tuto.Objects
{
    /// <summary>
    ///     Representes a TutoEtudiant object on the system
    ///     Inherit from TutoPersonne
    /// </summary>
    public class TutoEtudiant : TutoPersonne
    {
        private int _id;
        private string _numeroCarte;
        private string _diplome;
        private string _niveau;

        public int id
        {
            get
            {
                return this._id;
            }
            set
            {
                this._id = value;
            }
        }
        public string numeroCarte
        {
            get
            {
                return this._numeroCarte;
            }
            set
            {
                this._numeroCarte = value;
            }
        }

        public string diplome
        {
            get
            {
                return this._diplome;
            }
            set
            {
                this._diplome = value;
            }
        }

        public string niveau
        {
            get
            {
                return this._niveau;
            }
            set
            {
                this._niveau = value;
            }
        }

        public TutoEtudiant() : base()
        {
            this.numeroCarte = String.Empty;
            this.diplome = String.Empty;
            this.niveau = String.Empty;
        }
        /// <summary>
        ///     Create a new TutoEtudiant object 
        /// </summary>
        /// <param name="id"></param>
        /// <param name="nom"></param>
        /// <param name="prenom"></param>
        /// <param name="adresse"></param>
        /// <param name="email"></param>
        /// <param name="telephone"></param>
        /// <param name="numeroCarte"></param>
        /// <param name="diplome"></param>
        /// <param name="niveau"></param>
        public TutoEtudiant(
                                string nom,
                                string prenom,
                                string adresse,
                                string email,
                                string telephone,
                                string numeroCarte,
                                string diplome,
                                string niveau
                           ) 
        : base (nom, prenom, adresse, email, telephone)
        {
            this.numeroCarte = numeroCarte;
            this.diplome = diplome;
            this.niveau = niveau;
        }        
    }
}
